package com.xiaotu.code.dao.quartz;

import org.springframework.stereotype.Repository;

import com.xiaotu.code.dao.HibernateDao;
import com.xiaotu.code.model.quartz.QuartzCronExpression;

/**
 * 
 * 定时器时间配置.
 * 
 * @author chenxiangrong
 */
@Repository
public class QuartzCronExpressionDao extends HibernateDao<QuartzCronExpression, Long> {

	/**
	 * 获取QuartzCronExpression.
	 * 
	 * @param beanName
	 * @return
	 */
	public QuartzCronExpression findQuartzCronExpression(String beanName) {

		String hql = "from QuartzCronExpression t where t.beanName = ? ";
		return super.findUnique(hql, beanName);
	}
}
